import { FC } from 'react';
import { connect, ConnectProps, Loading } from 'umi';
import { LoginModelState } from './model';

interface PageProps extends ConnectProps {
  login: LoginModelState;
  loading: boolean;
}

const LoginPage: FC<PageProps> = function ({ login, loading }) {
  return <div>主页测试</div>;
};

export default connect(
  ({ login, loading }: { login: LoginModelState; loading: Loading }) => ({
    login,
    loading: loading.models.login,
  }),
)(LoginPage);
